<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="div1">
			zhangsan
			<a href="#">lisi</a>
		</div>
		
		
		<script type="text/javascript">
			let div1 = document.getElementById('div1');
			alert(div1.innerText) 
			
		</script>
	</body>
</html>
